package com.shichenjia.fileupload.common;

public enum ErrorCode {

    SUCCESS(200, "ok"),
    NOT_FOUND(404, "未查询到"),
    NO_AUTH(401, "暂无权限"),
    NO_ID(500, "id不存在"),
    PARAMS_ERROR(400, "请求参数错误"),
    SYSTEM_ERROR(500, "系统内部错误");

    private final int code;
    private final String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
